package com.ossjk.qlh.system.service;

import com.ossjk.qlh.system.entity.RolePermission;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 角色权限表 服务类
 * </p>
 *
 * @author chair
 * @since 2020-04-02
 */
public interface IRolePermissionService extends IService<RolePermission> {

	/**
	 * 根据Rid授权
	 * 
	 * @param rid
	 * @param pids
	 * @return
	 */
	public boolean authorityByRid(String rid, List<String> pids);

	/**
	 * 根据rid查找pid
	 * 
	 * @param id
	 * @return
	 */
	public List<String> queryPidByRid(Serializable rid);
}
